package com.tx.websocket.demo.service;


import com.tx.websocket.demo.common.OffsetBean;
import com.tx.websocket.demo.dto.RoleResourceDto;
import com.tx.websocket.demo.model.Role;

import java.util.List;

public interface RoleService {

    Integer addRole(Role role);

    List<Role> listRole(Role role, OffsetBean offsetBean);

    Role getRoleByPrimaryKey(Long id);

    Integer delRoleByPrimaryKey(Long id);

    Integer updateRole(Role role);

    List<Role> listRoleByUserId(Long userId);

    Integer totalRole(Role role);

    void doRoleResourceBinding(Long roleId, List<Long> resourceIds);

    RoleResourceDto doRoleResourceRel(Long roleId);
}
